﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/BMP_List.master" AutoEventWireup="true"
    CodeFile="OnLineRateTotal.aspx.cs" Inherits="Pages_OnLineRateTotal" %>

<asp:Content ID="contentHeader" ContentPlaceHolderID="head" runat="Server">
      <link rel="stylesheet" href="<%= ZPath.ResourcesURI %>HTMLControls/FusionChartsV3/Contents/Style.css"
        type="text/css" />
    <script type="text/javascript" src="<%= ZPath.ResourcesURI %>HTMLControls/FusionChartsV3/JSClass/FusionCharts.js"></script>
    <style type="text/css">
        .listTable
        {
            width: 1000px !important;
            margin-top: 1px;
            margin-left: 2px;
        }
        table
        {
            width: 80% !important;
        }
    </style>
</asp:Content>
<asp:Content ID="contentSearch" ContentPlaceHolderID="contentPlaceHolderToolBar"
    runat="Server">

    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="ddlCity"></asp:AsyncPostBackTrigger>
        </Triggers>
        <ContentTemplate>
            <asp:DropDownList ID="ddlCity" runat="server" Width="135px" AutoPostBack="True" OnSelectedIndexChanged="ddlCity_SelectedIndexChanged">
            </asp:DropDownList>
            <asp:DropDownList ID="ddlDistrict" runat="server" Width="135px">
            </asp:DropDownList>
        </ContentTemplate>
    </asp:UpdatePanel>

    日期
    <asp:TextBox ID="fromData" runat="server" Field="CreateDate" Opt="&#62;=" onFocus="GetMaxDate('toData');"
        ClientIDMode="Static" Width="80">
    </asp:TextBox>
    至
    <asp:TextBox ID="toData" runat="server" Field="CreateDate" Opt="&#60;=" onFocus="GetMinDate('fromData');"
        ClientIDMode="Static" Width="80">
    </asp:TextBox>
    设备编号
    <asp:TextBox runat="server" ID="Equip_No" Field="Equip_No" Opt="%"></asp:TextBox>
</asp:Content>
<asp:Content ID="contentMain" ContentPlaceHolderID="contentPlaceHolder" runat="Server">
    <div id="chartdiv" align="left" style="width: 100%; margin-left: 2px;">
    </div>
    <script type="text/javascript">
        var chart = new FusionCharts("<%= ZPath.ResourcesURI %>HTMLControls/FusionChartsV3/Charts/MSColumn3D.swf", "ChartId", "1000", "400", "0", "0");
        chart.setDataXML('<% =_FusionCartXML %>');
        chart.render("chartdiv");
    </script>
    <asp:GridView ClientIDMode="Static" ID="gvInfos" runat="server" CssClass="grid">
        <Columns>
            <asp:TemplateField ItemStyle-Width="50">
                <HeaderTemplate>
                    排名
                </HeaderTemplate>
                <ItemTemplate>
                    <%# Container.DataItemIndex + 1%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="City" SortExpression="City" HeaderText="区域" />
            <asp:BoundField DataField="OnLineCount" SortExpression="OnLineCount" HeaderText="在线设备数" />
            <asp:BoundField DataField="Total" SortExpression="OnLineCount" HeaderText="总设备数" />
            <asp:BoundField DataField="OnLineRatePrecent" SortExpression="OnLineRatePrecent"
                HeaderText="设备在线率" />
        </Columns>
    </asp:GridView>
  
</asp:Content>
